import time
from selenium import  webdriver
from selenium.webdriver.common.by import By

driver =webdriver.Chrome()
driver.get('https://www.so.com/')
su=driver.find_element(By.ID,"input")
su.send_keys('python软件测试')
ad =driver.find_element(By.ID,'search-button').click()
time.sleep(3)
print(driver.title)
if 'python' in driver.title:
    print('找到了')
else:
    print('没有找到')


time.sleep(3)
driver.quit()